home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / networking / amitcp / wu-ftpd-37.19.lha / wu-ftpd / src / smakefile < prev    next >
Encoding:
Makefile  |  1994-09-12  |  1.9 KB  |  67 lines

  1. #
  2. # wu-ftpd makefile for SAS C 6.51
  3. #
  4.  
  5. OBJ1    = ftpd.o ftpcmd.o glob.o vers.o access.o extensions.o
  6. OBJ2    = realpath.o acl.o private.o authenticate.o conversions.o hostacc.o
  7. OBJ3    = getusershell.o authuser.o fnmatch.o ftw.o strsep.o
  8. OBJ4    = regexp.o regerror.o amiga.o unixdirs.o fixes.o amitcp.o
  9. OBJS    = ${OBJ1} ${OBJ2} ${OBJ3} ${OBJ4}
  10.  
  11. all: ftpd ftpcount ftpshut
  12.  
  13. ftpcount: ftpcount.o vers.o
  14.     ${CC} LINK TO $@ ftpcount.o vers.o
  15.  
  16. ftpshut: ftpshut.o vers.o
  17.     ${CC} LINK TO $@ ftpshut.o vers.o
  18.  
  19. ftpd: ${OBJS}
  20.     ${CC} LINK TO $@ ${OBJS}
  21.  
  22. vers.o:
  23.     execute newvers.sh
  24.     ${CC} vers.c
  25.  
  26. ftpcmd.c: ftpcmd.y
  27.     bison -y ftpcmd.y -o ftpcmd.c
  28.  
  29. # The following dependency is needed because we
  30. # have to compile this module with PARM=BOTH in
  31. # order to replace the original SAS/C library
  32. # routines.
  33. amitcp.o: amitcp.c config.h
  34.     ${CC} PARM=BOTH amitcp.c
  35.  
  36. # Cleanup junk
  37. clean:
  38.     -delete ${OBJS} ftpcmd.c ftpd ftpd.lnk
  39.         -delete ftpshut ftpshut.lnk ftpshut.o
  40.         -delete ftpcount ftpcount.lnk ftpcount.o
  41.  
  42. # Bump revision
  43. bumprev: vers.o all
  44.  
  45. # Dependencies
  46. authenticate.o: authenticate.c authenticate.h config.h
  47. conversions.o: conversions.c conversions.h extensions.h pathnames.h config.h
  48. hostacc.o: hostacc.c hostacc.h config.h
  49. extensions.o: extensions.c extensions.h pathnames.h config.h
  50. ftpd.o: ftpd.c extensions.h pathnames.h config.h
  51. ftpcmd.o: ftpcmd.c extensions.h pathnames.h config.h
  52. access.o: access.c extensions.h pathnames.h config.h
  53. acl.o: acl.c extensions.h pathnames.h config.h
  54. private.o: private.c extensions.h pathnames.h config.h
  55. ftpcount.o: ftpcount.c extensions.h pathnames.h config.h
  56. ftpshut.o: ftpshut.c pathnames.h config.h
  57. realpath.o: realpath.c config.h
  58. glob.o: glob.c config.h
  59. getusershell.o: getusershell.c config.h
  60. authuser.o: authuser.c config.h authuser.h
  61. fnmatch.o: fnmatch.c config.h
  62. ftw.o: ftw.c config.h ftw.h
  63. strsep.o: strsep.c
  64. regexp.o: regexp.c regexp.h regmagic.h
  65. amiga.o: amiga.c extensions.h config.h
  66. fixes.o: fixes.c config.h
  67.